package cc.geguo.smartcan.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import cc.geguo.smartcan.pojo.Account;
import cc.geguo.smartcan.mapper.AccountDao;

@Service
public class AccountService{

    @Resource
    private AccountDao accountDao;

    public int insert(Account pojo){
        return accountDao.insert(pojo);
    }

    public int insertSelective(Account pojo){
        return accountDao.insertSelective(pojo);
    }

    public Account login(Account account){
        return accountDao.login(account);
    }

    public int insertList(List<Account> pojos){
        return accountDao.insertList(pojos);
    }

    public int update(Account pojo){
        return accountDao.update(pojo);
    }
}
